// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_a;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.nnee.p_img.cls_c;
import com.nnee.p_img.cls_d;
import com.nnee.p_l.p_b.cls_a;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_u;
import java.util.LinkedList;
import java.util.List;

// Referenced classes of package com.nnee.p_pr.p_activity.a:
//            r, x

public class cls_m extends BaseAdapter
{

    public m(Context context)
    {
        g = null;
        d = context;
        a = com.nnee.p_img.cls_c.a(context, 48F);
        b = a;
        f = (LayoutInflater)context.getSystemService("layout_inflater");
    }

    private void a(r r1, cls_u u1, int i)
    {
        if(r1 != null && u1 != null)
        {
            String s = u1.aB();
            r1.b.setText(s);
            String s1 = u1.X();
            r1.c.setText(s1);
            String s2 = com.nnee.l.b.a.a(d, u1);
            r1.d.setText(s2);
            com.nnee.p_pr.p_activity.p_view.cls_c c1 = new com.nnee.p_pr.p_activity.p_view.c();
            c1.a = u1.V();
            c1.b = i;
            r1.a.setTag(c1);
            String s3 = u1.b(g.g);
            if(s3 == null)
            {
                r1.a.setImageResource(0x7f0200f2);
            } else
            {
                r1.a.setImageResource(0x7f0200f2);
                StringBuilder stringbuilder = new StringBuilder();
                r1.b.setTag(stringbuilder);
                com.nnee.p_img.cls_d.a().a(stringbuilder, 1, s3, new cls_x(this, r1), a, b, 2, c);
            }
        }
    }

    public void a()
    {
        b();
        g = null;
        f = null;
        d = null;
    }

    public void a(int i)
    {
        c = i;
    }

    public void a(android.view.View.OnClickListener onclicklistener)
    {
        g = onclicklistener;
    }

    public void a(LinkedList linkedlist)
    {
        e = linkedlist;
    }

    public void a(List list)
    {
        if(list != null && list.size() != 0) goto _L2; else goto _L1
_L1:
        return;
_L2:
        LinkedList linkedlist = e;
        linkedlist;
        JVM INSTR monitorenter ;
        for(int i = -1 + list.size(); i >= 0; i--)
            e.addFirst(list.get(i));

        notifyDataSetChanged();
        if(true) goto _L1; else goto _L3
_L3:
    }

    public cls_u b(int i)
    {
        cls_u u1;
        if(e != null && e.size() > 0)
        {
            if(i >= e.size())
                i = -1 + e.size();
            u1 = (u)e.get(i);
        } else
        {
            u1 = null;
        }
        return u1;
    }

    public void b()
    {
        LinkedList linkedlist = e;
        linkedlist;
        JVM INSTR monitorenter ;
        e.clear();
        notifyDataSetChanged();
        return;
    }

    public void b(List list)
    {
        if(list != null && list.size() != 0) goto _L2; else goto _L1
_L1:
        return;
_L2:
        LinkedList linkedlist = e;
        linkedlist;
        JVM INSTR monitorenter ;
        e.addAll(list);
        notifyDataSetChanged();
        if(true) goto _L1; else goto _L3
_L3:
    }

    public int getCount()
    {
        int i = 0;
        if(e != null)
            i = e.size();
        return i;
    }

    public Object getItem(int i)
    {
        return b(i);
    }

    public long getItemId(int i)
    {
        return (long)i;
    }

    public View getView(int i, View view, ViewGroup viewgroup)
    {
        r r1;
        cls_u u1;
        if(view == null)
        {
            view = f.inflate(0x7f030021, null);
            r r2 = new cls_r(this);
            r2.a = (ImageView)view.findViewById(0x7f0d0062);
            r2.b = (TextView)view.findViewById(0x7f0d0063);
            r2.c = (TextView)view.findViewById(0x7f0d0065);
            r2.d = (TextView)view.findViewById(0x7f0d0064);
            r2.a.setFocusable(false);
            r2.a.setClickable(true);
            r2.a.setOnClickListener(g);
            view.setTag(r2);
            r1 = r2;
        } else
        {
            r1 = (r)view.getTag();
        }
        u1 = b(i);
        if(u1 != null)
            a(r1, u1, i);
        return view;
    }

    private int a;
    private int b;
    private int c;
    private Context d;
    private LinkedList e;
    private LayoutInflater f;
    private android.view.View.OnClickListener g;
}
